<?php
$this->breadcrumbs[]=Lang::t('news.update.page.title');
$this->breadcrumbs[]=$news->title;
?>

<div class="page-nav text-right">
    <a href="<?php echo $this->addNewUrl; ?>" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> <?php echo Lang::t('news.update.btn.add.new'); ?></a>
    <a href="<?php echo $this->homeUrl; ?>" class="btn btn-default"><span class="glyphicon glyphicon-list"></span> <?php echo Lang::t('news.update.btn.cancel'); ?></a>
</div>
<div class="alert alert-info"><?php echo Lang::t('news.update.form.note'); ?></div>

<?php echo $this->renderPartial('_form', array('news'=>$news, 'content'=>$content, 'formConfig'=>$formConfig)); ?>

<p class="text-right">
<?php echo Lang::t('app.record.timestamp',array(
    '{createdTime}'=>date('d-M-Y H:i:s',$news->createdTime),
    '{creator}'=>$news->creatorName,
    '{updatedTime}'=>date('d-M-Y H:i:s', $news->updatedTime),
    '{editor}'=>$news->editorName
    ));
?></p>

<?php /*
$this->widget('ext.extended.DetailView', array(
    'data' => $news,
    'attributes' => array(
        array(
            'name' => 'Created Date',
            'value' => date('d-M-Y H:i:s', $news->createdTime),
        ),
        array(
            'name'=>'Creator',
            'value'=>$news->creatorName,
        ),
        array(
            'name' => 'Modified Date',
            'value' => date('d-M-Y H:i:s', $news->updatedTime),
        ),
        array(
            'name'=>'Modifier',
            'value'=>$news->editorName,
        ),
    ),
));*/
?>